import request from '@/utils/request';
// 话术分组
export function groupData(data: any) {
    return request({
        method: 'GET',
        url: 'scrm-api/console/tenant/group/getLists',
        params: data
    });
}
// 获取话术列表
export function verbalTricks(data: any) {
    return request({
        method: 'POST',
        url: '/scrm-api/console/media/content/speechcraft/list',
        data,
        noNeedLoading: true
    });
}
// 批量删除及删除
export function batchOrDel(data: any) {
    return request({
        method: 'POST',
        url: '/scrm-api/console/media/content/speechcraft/batch-del',
        data,
        noNeedLoading: true
    });
}
// 导入话术
export function expSeep(data: any) {
    return request({
        method: 'POST',
        url: 'scrm-api/console/media/content/speechcraft/import',
        data
    });
}
// 新建话术
export function create(data: any) {
    return request({
        method: 'POST',
        url: 'scrm-api/console/media/content/speechcraft/create',
        data
    });
}
// 预览
export function preview(data: any) {
    return request({
        method: 'GET',
        url: 'scrm-api/console/media/content/speechcraft/info',
        params: data
    });
}
// 编辑话术
export function edit(data: any) {
    return request({
        method: 'POST',
        url: 'scrm-api/console/media/content/speechcraft/update',
        data
    });
}
